window.onload = function() {
	angle()
}
//容器四角样式
function angle() {
	var angle = '<div class="tLeft"></div><div class="tRight"></div><div class="bLeft"></div><div class="bRight"></div>'
	$('.aiData .angle').append(angle)
}
//高级搜索监控
function searchBtn() {
	$("#Advanced").on('click', function() {
		$('#Mask').fadeIn();
		close()
	})

	close = function () {
		var oDiv1 = document.getElementById('Pop');
		var oDiv2 = document.getElementById('Mask');
		oDiv1.onclick = function(ev) {
			var oEvent = ev || event;
			oEvent.stopPropagation();
		}
		oDiv2.onclick = function(ev) {
			var oEvent = ev || event;
			oDiv2.style.display = "none"
		}
	}
}
function zclose(){
	var oDiv2 = document.getElementById('Mask');
		oDiv2.style.display = "none"
}
//table 判断列表滚动条是否出现
function tableScroll() {
	
	var tableCont = $('.table_list')
	tableCont.height(tableCont.parent().height())

	function scrollHandle(e) {
		var scrollTop = this.scrollTop;
		this.querySelector('thead').style.transform = 'translateY(' + scrollTop + 'px)';
		if(scrollTop > 0) {
			this.querySelector('thead').style.backgroundColor = 'rgba(2,38,81,.85)'
		} else {
			this.querySelector('thead').style.backgroundColor = ''
		}
	}
	tableCont.on('scroll', scrollHandle);
}

function Filtrate() {
	$('.filtrateLabel').empty()
	var si = $(".formUl .form_row")
	var ing = "";
	for(var i = 0; i < si.length; i++) {
		if($(si[i]).find('option:selected').val() != 0) {
			labelText = $(si[i]).find('label').text()
			optionVal = $(si[i]).find('option:selected').text()
			ing = "<div class='label'><div class=''>" + labelText + "：</div><div>" + optionVal + "</div></div>";
			$('.filtrateLabel').prepend(ing)
		}
	}
	zclose()
}